package com.dfrz.household.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@TableName("t_shopcart")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ShopCart {
    @TableId(type=IdType.AUTO)
    private Integer id;//定义购物车id
    private Integer sdid;//定义服务id
    private Integer count;//定义商品数量
    private Integer totalprice;//定义商品总价
    private Integer uid;//定义用户id
    @TableField(exist = false)
    private ServerPerson serverPerson;
    @TableField(exist = false)
    private Server server;

}
